﻿using System.Data;

namespace CWM.Client.Utils
{
    public partial class DataColumnUtils
    {
        public static DataColumn Create(string columnName,object defaultValue) {
            DataColumn column = new DataColumn();
            column.ColumnName = columnName;
            column.DefaultValue = defaultValue;
            return column;
        }

        public static DataColumn Create(string columnName)
        {
            DataColumn column = new DataColumn();
            column.ColumnName = columnName;
            return column;
        }

        public static DataColumn IsSelected
        {
            get { return Create("IsSelected"); }
        }

        public static DataColumn IsSelectedDefaultTrue
        {
            get { return Create("IsSelected", "True"); }
        }

        public static DataColumn IsSelectedDefaultFalse
        {
            get { return Create("IsSelected", "False"); }
        }
    }
}
